<?php 
$i=$this->count;
foreach ($this->list_province as $province) $arr_province[$province['idProvince']]=$province['ProvinceName'];
?>
 <script>
    $(document).ready(function(){
    loadDistrict('idProvince_<?php echo $i?>','idDistrict_<?php echo $i?>');
    loadDistrict('idProvince_<?php echo $i?>','idDistrict_<?php echo $i?>');
    });
</script>
					<div class="row-fluid control-group" id="router_<?php echo $i?>">
					    <div class="span2">
					        <label>Địa điểm <?php echo $i?></label>
					        <?php echo $this->formSelect("idProvince_".$i,NULL,array("style"=>"max-width:150px","onchange"=>"loadDistrict('idProvince_".$i."','idDistrict_".$i."')"),$arr_province)?>
					    </div>
					    <div class="span2">
					        <label>Huyện</label>
					        <?php echo $this->formSelect("idDistrict_".$i,NULL,array("style"=>"max-width:150px",NULL))?>
					    </div>
					    <div class="span2">
					        <label>Giờ đi qua điểm này</label>
					        <?php echo $this->formSelect("hour_FirstTimeToPoint".$i,15,array("style"=>"max-width:55px"),$this->arr_hour); ?>
					        h
					        <?php echo $this->formSelect("minute_FirstTimeToPoint".$i,15,array("style"=>"max-width:55px"),$this->arr_minute); ?>
					    </div>
					    <div class="span2">
					        <label>Giờ về qua điểm này</label>
					        <?php echo $this->formSelect("hour_BackTimeToPoint".$i,15,array("style"=>"max-width:55px"),$this->arr_hour); ?>
					        h
					        <?php echo $this->formSelect("minute_BackTimeToPoint".$i,15,array("style"=>"max-width:55px"),$this->arr_minute); ?>
					    </div>
					    <div class="span3">
					        <label>Giá vé từ đầu bến tới điểm này</label>
					        <?php echo $this->formText("CostFromStartToThisPoint".$i,NULL,array("style"=>"max-width:150px;"))?>
					        <button class="btn btn-small btn-danger" type="button" onclick="$('#router_<?php echo $i?>').remove()">Xóa</button>
					    </div>
</div>